package P7.T01;

public class T02 {
    public static void main(String[] args) {
        Odd odd = new Odd(100,200);
        Even even = new Even(300,400);
        even.setPriority(1);
        odd.setPriority(10);
        odd.start();
        even.start();
    }
}
class Odd extends Thread{
    private int min,max;
    public Odd(int min, int max) {
        this.min = min;
        this.max = max;
    }
    @Override
    public void run() {
        for(int i=min;i<=max;i++){
            if(i%2==1)
                System.out.println("=="+i+"==");
        }
    }
}
class Even extends Thread{
    private int min,max;
    public Even(int min, int max) {
        this.min = min;
        this.max = max;
    }

    @Override
    public void run() {
        for(int i=min;i<=max;i++){
            if(i%2==0) System.out.println("**"+i+"**");
        }
    }
}